import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import render from "@feidao/web/atom/browser/render/render";
import nodejs from "@feidao/web/atom/browser/msg/nodejs";
import P02 from './P02';

export default async function a001(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	//  分页
	const page_no = args[0].page_no;
	console.log('-------------------fenye-----------', page_no);
	const f = {
		criteria: { staff_job_status: '1' },
		sort: {},
		page_size: 10,
		page_no: 1
	}
	fd.data.page_no = page_no;
	const condition = fd.data.condition;
	const data = await nodejs(fd.data.spaceid, "teach_staff_find", { criteria: condition.param, page_no, page_size: 10, sort: condition.order });
	render(fd, data, P02, 'P02', 'inner');
}
